package cn.fate.core.common;

import org.springframework.util.DigestUtils;

import java.io.UnsupportedEncodingException;

/**
 * @program: FtCore
 * @description:
 * @author: xubo
 * @create: 2021-09-14 11:15
 **/
public class Md5Util {
    public Md5Util() {
    }

    public static String getMD5String(String str) {
        try {
            return DigestUtils.md5DigestAsHex(str.getBytes("UTF-8"));
        } catch (UnsupportedEncodingException var2) {
            return null;
        }
    }
}
